import Vue from 'vue'
import Router from 'vue-router'

import login from '@/views/login'
import welcome from "@/views/welcome/welcome"

Vue.use(Router)
import  home   from "@/views/home";

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path:"/",
      name:"home",
      component:home,
      redirect: { path: "/welcome" },
      
      children:[
        {name:"welcome",path:"welcome",component:welcome}
      ]
    }

  ]
})
